package au.edu.swin.swinvehicle.bookingtype;

/**
 * BookingType tranfer object. This is the detailed information of booking type.
 * @version 1.0
 * @author Dany Gunawan
 * @lastmodify 2009-05-12
 */
public class BookingTypeDetailedTO {

    private Long id;
    private String code;
    private String description;

    /** Creates a new instance of BookingTypeTO */
    public BookingTypeDetailedTO(Long id, String code, String description) throws BookingTypeManagerException {

        try {
            this.id = id;
            this.setCode(code);
            this.setDescription(description);
        } catch (Exception e) {
            throw new BookingTypeManagerException("Cannot instantiate new BookingTypeDetailedTO object", e);
        }
    }

    public Long getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
